home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / teglp.zip / SAMPROGS.ZIP / SAMC0303.PAS < prev    next >
Pascal/Delphi Source File  |  1990-06-27  |  808b  |  50 lines

  1. {$F+}  { -- far code model is required for any functions that }
  2.        { -- are to be used as Event Handlers }
  3.  
  4. Uses
  5.     dos,
  6.     graph,
  7.  
  8.     virtmem,
  9.     fastgrph,
  10.     TEGLIntr,
  11.     TEGLICON,
  12.     TEGLGRPH,
  13.     TEGLUnit,
  14.     TEGLMenu,
  15.     SenseMs,
  16.     DebugUnt,
  17.     TEGLEasy;
  18.  
  19. { -- insert variables here }
  20.  
  21. VAR fs : ImageStkPtr;
  22.  
  23. { -- insert procedures and functions here }
  24.  
  25.  
  26.  
  27. BEGIN
  28.  
  29.    EasyTEGL;
  30.  
  31.    { -- insert the example code here }
  32.    { -- press Ctrl-Break to exit program }
  33.  
  34.    PushImage(1,1,100,100);
  35.    ShadowBox(1,1,100,100);
  36.    FS := StackPtr;
  37.  
  38.    PushImage(50,50,150,150);
  39.    ShadowBox(50,50,150,150);
  40.  
  41.    WHILE Mouse_Buttons = 0 DO;
  42.  
  43.    RotateStackImage(fs,StackPtr);
  44.  
  45.  
  46.    { -- control is then passed to the supervisor }
  47.  
  48.    TEGLSupervisor;
  49. END.
  50.